package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TransPlanMapper;
import com.ruoyi.system.domain.TransPlan;
import com.ruoyi.system.service.ITransPlanService;

/**
 * 转运计划Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-18
 */
@Service
public class TransPlanServiceImpl implements ITransPlanService 
{
    @Autowired
    private TransPlanMapper transPlanMapper;

    /**
     * 查询转运计划
     * 
     * @param id 转运计划主键
     * @return 转运计划
     */
    @Override
    public TransPlan selectTransPlanById(Long id)
    {
        return transPlanMapper.selectTransPlanById(id);
    }

    /**
     * 查询转运计划列表
     * 
     * @param transPlan 转运计划
     * @return 转运计划
     */
    @Override
    public List<TransPlan> selectTransPlanList(TransPlan transPlan)
    {
        return transPlanMapper.selectTransPlanList(transPlan);
    }

    /**
     * 新增转运计划
     * 
     * @param transPlan 转运计划
     * @return 结果
     */
    @Override
    public int insertTransPlan(TransPlan transPlan)
    {
        return transPlanMapper.insertTransPlan(transPlan);
    }

    /**
     * 修改转运计划
     * 
     * @param transPlan 转运计划
     * @return 结果
     */
    @Override
    public int updateTransPlan(TransPlan transPlan)
    {
        return transPlanMapper.updateTransPlan(transPlan);
    }

    /**
     * 批量删除转运计划
     * 
     * @param ids 需要删除的转运计划主键
     * @return 结果
     */
    @Override
    public int deleteTransPlanByIds(Long[] ids)
    {
        return transPlanMapper.deleteTransPlanByIds(ids);
    }

    /**
     * 删除转运计划信息
     * 
     * @param id 转运计划主键
     * @return 结果
     */
    @Override
    public int deleteTransPlanById(Long id)
    {
        return transPlanMapper.deleteTransPlanById(id);
    }
}
